import { Injectable } from '@nestjs/common';
import { AuthGuard } from '@nestjs/passport';

// 守卫的名称要与其关联的策略的名称相同
export const GUARD_NAME = 'my-local';

@Injectable()
export class LocalAuthGuard extends AuthGuard(GUARD_NAME) {}
